-
Notifications
You must be signed in to change notification settings - Fork 115
Fix warning from DataStructures.jl #471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The JuliaFormatter test dependency is compat bound to its old version 1.0 because there were problems with 2.0. It seems 1.0 clashes with DataStructures 0.19. If the problems with 2.0 are fixed, we can rerun the formatter and remove that bound. That is the blocker to making DataStructures 0.19 work. |
|
duplicate of PR #466 |
|
Maybe the question is: why JuliaFormatter is a test dependency in a package
like Graphs.jl? Can't we get rid of it?
Em qui., 6 de nov. de 2025, 11:44, Stefan Krastanov <
***@***.***> escreveu:
… *Krastanov* left a comment (JuliaGraphs/Graphs.jl#471)
<#471 (comment)>
The JuliaFormatter test dependency is compat bound to its old version 1.0
because there were problems with 2.0. It seems 1.0 clashes with
DataStructures 0.19.
If the problems with 2.0 are fixed, we can rerun the formatter and remove
that bound. That is the blocker to making DataStructures 0.19 work.
—
Reply to this email directly, view it on GitHub
<#471 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZQW3JZFLE2CQ23S6RXT4333NNFZAVCNFSM6AAAAACLKN2DPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIOJXGU2TQOJYGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
We can not delete it -- Graphs.jl enforces formatting as a part of its tests. Aggressive quality assurance like this is important for large projects with almost zero maintainers, like Graphs.jl. At least that was the belief of the couple of volunteers that were maintaining this tool in the last couple of years. Of course, if someone volunteers to be an active maintainer, they would be able to change that policy. |
|
I used to be one of the core maintainers of LightGraphs.jl before it was converted into Graphs.jl. Back in the days I don't recall any test that depended on formatting. Could you please clarify the current situation with a specific test that depends on JuliaFormatter? |
|
formatting attempted again now in #472 |
Currently I am the only maintainer and I do not have the standing to make changes without input from the community and from more volunteers. I appreciate your dev work from the past, and if you have the bandwidth to get more involved again, that would certainly be appreciated. The Formatter checks were instituted before I started volunteering to maintain by the previous two caretakers. The argument in favor is that if you do not have enough maintainers you need harsh quality assurance to avoid bitrot. I am weakly in favor of that approach, but will not be unilaterally changing it without other active maintainers on board. The tests is here: Line 168 in 9a7a6df
|
|
I believe this test can be removed in favor of GitHub Actions that check formatting issues. We did set this up across all our currently maintained packages. See Meshes.jl for example, this action: https://github.com/JuliaGeometry/Meshes.jl/blob/master/.github/workflows/FormatPR.yml Every pull request runs a formatting check and the bot makes suggestions to fix issues. No code is merged otherwise.
I can try to help. For some reason I lost write access to Graphs.jl after the conversion from LightGraphs.jl. |
|
added you to the team -- you should have access again |
|
Closing in favor of #472 where the formatting issue is addressed. I cherrypicked the commit from here. I like the idea of adding the FormatPR.yml workflow, but lets keep the tests too, to avoid accidentally merging things without properly formatted code. |
The GitHub Action I mentioned will automatically open a PR with fixes related to formatting, so the main branch will always adhere to the specified code style. I still think that we should not add JuliaFormatter as a test dependency. This is not a dependency that is testing the feature-set of the package, but rather the quality of the code in the repository. For the latter, GitHub Actions are more appropriate and avoid version conflicts like this one we saw that was holding unrelated updates. Can I implement the GitHub Action for formatting code and remove the format tests to eliminate JuliaFormatter from the test dependencies? |
|
If no one else complains about this, I consent, as long as the PRs that the formatter action makes are towards the original PR branch, not to master. If the formatter PRs are to master, that would result in a very messy git history with a ton of formatting commits making git blame much harder to use. The one thing I am strongly opposed to is frequent formatting commits in the master branch. |
This is a really basic warning, but I think it didn't get fixed because the tests are annoyingly using JuliaFormatter which is not compatible with the latest version of DataStructures.jl?
Could someone please jump in and fix the tests?